package Coffee.bean;

public class Order {
    private String orderid;
    private String userid;
    private String username;
    private String cofid;
    private String cofname;
    private int cofcount;
    private int coftotal;
    private String createtime;
    private String orderstate;

    //订单状态：待支付、制作中、已完成、已取消
    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCofid() {
        return cofid;
    }

    public void setCofid(String cofid) {
        this.cofid = cofid;
    }

    public String getCofname() {
        return cofname;
    }

    public void setCofname(String cofname) {
        this.cofname = cofname;
    }

    public int getCofcount() {
        return cofcount;
    }

    public void setCofcount(int cofcount) {
        this.cofcount = cofcount;
    }

    public int getCoftotal() {
        return coftotal;
    }

    public void setCoftotal(int coftotal) {
        this.coftotal = coftotal;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getOrderstate() {
        return orderstate;
    }

    public void setOrderstate(String orderstate) {
        this.orderstate = orderstate;
    }

    public Order() {
    }

    public Order(String orderid, String userid, String username, String cofid,
                 String cofname, int cofcount, int coftotal, String createtime, String orderstate) {
        this.orderid = orderid;
        this.userid = userid;
        this.username = username;
        this.cofid = cofid;
        this.cofname = cofname;
        this.cofcount = cofcount;
        this.coftotal = coftotal;
        this.createtime = createtime;
        this.orderstate = orderstate;
    }


    @Override
    public String toString() {
        return String.format("用户名: '%s', 饮品名: '%s', 数量: %d, 总价: %d, 订单状态: %s, 订单创建时间: '%s', 订单ID: '%s', 用户ID: '%s', cofid: '%s'",
                username, cofname, cofcount, coftotal, orderstate, createtime, orderid, userid, cofid);

    }
}


